
import { useRoute } from "vue-router"

export default () => {
  const route = useRoute()
  const token = route?.query?.token
  if (token) {
    const tokenData = {
      access_token: token,
      isImplantApp: true
    }
    localStorage.setItem('tokenData', JSON.stringify((tokenData)))
  }
}

export const getIsImplantApp = () => {
  const route = useRoute()
  const token = route?.query?.token
  if(token){
    true
  }
  const tokenData = JSON.parse(localStorage.getItem('tokenData'))
  return tokenData?.isImplantApp

}
